
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="MOBAN">

<meta name="description" content="">
<meta name="keywords" content="bootstrap, bootstrap5">
<link rel="preconnect" href="https://fonts.googleapis.com/">
<link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin="">
<link href="static/css/css2.css" rel="stylesheet">
<link rel="stylesheet" href="static/css/style.css">
<link rel="stylesheet" href="static/css/flaticon.css">
<link rel="stylesheet" href="static/css/bootstrap-icons.css">
<link rel="stylesheet" href="static/css/tiny-slider.css">
<link rel="stylesheet" href="static/css/aos.css">
<link rel="stylesheet" href="static/css/glightbox.min.css">
<link rel="stylesheet" href="static/css/style1.css">
<link rel="stylesheet" href="static/css/flatpickr.min.css">
<link rel="short icon" href="images/28.jpg">
<title>知文招标网 - 搜索</title>
</head>
<body>
	<div class="site-mobile-menu site-navbar-target">
		<div class="site-mobile-menu-header">
			<div class="site-mobile-menu-close">
				<span class="icofont-close js-menu-toggle"></span>
			</div>
		</div>
		<div class="site-mobile-menu-body"></div>
	</div>
	<nav class="site-nav">
		<div class="container"  id="chw">
			<div class="menu-bg-wrap">
				<div class="site-navigation">
					<div class="row g-0 align-items-center">
						<div class="col-2">
							<a href="index.html" class="logo m-0 float-start">知文项目管理<span
								class="text-primary">.</span></a>
						</div>
						<div class="col-8 text-center">
							<form action="#" class="search-form d-inline-block d-lg-none">
								<input type="text" class="form-control" placeholder="搜索..." id="phoneSearch">
								<span class="bi-search"></span>
							</form>
							<ul
									class="js-clone-nav d-none d-lg-inline-block text-start site-menu mx-auto">
								<li class="active"><a href="index.html">首页</a></li>

								<li class="allPost has-children">
									<a href="blog.html">项目公告</a>
									<ul class="dropdown">
										<li><a href="searchType.html?type=1">招标公告</a></li>
										<li><a href="searchType.html?type=2">中标公告</a></li>
										<li><a href="searchType.html?type=3">其他公告</a></li>
									</ul>
								</li>
								<li><a href="category.html">公司新闻</a></li>
								<li><a href="laws.html">法律法规</a></li>
								<li><a href="about.html">关于我们</a></li>
							</ul>
						</div>
						<div class="col-2 text-end">
							<a href="#"
								class="burger ms-auto float-end site-menu-toggle js-menu-toggle d-inline-block d-lg-none light">
								<span></span>
							</a>
							<form action="" onsubmit="return false" class="search-form d-none d-lg-inline-block">
								<input type="text" class="form-control" placeholder="搜索..." id="searchContent" @keydown.enter="search">
								<span class="bi-searchs"></span>
							</form>
						</div>
						
					</div>
				</div>
			</div>
		</div>
	</nav>
<div class="cbt">
	<div class="section search-result-wrap">
		<div class="container">
			<div class="row">
				<div class="col-12">
					<div class="heading">搜索: <span style="color:red">{{title}}</span></div>
				</div>
			</div>
			<div class="row posts-entry" style="width: 100%;">
				<div class="col-lg-8" style="width: 100%;">
					<div class="blog-entry d-flex blog-entry-search-item" v-for="item in relatedPosts">
						<div>
							<span class="date">{{item.createDate.split(" ")[0]}} </span>
							<span v-if="item.tno == 1">[招标公告]</span>
							<span v-if="item.tno == 2">[中标公告]</span>
							<span v-if="item.tno == 3">[其他公告]</span>
							<span v-if="item.tno == 4">[法律法规]</span>
							<h2>
								<a href="javascript:void(0)" >{{item.title}}</a>
							</h2>
							   <a href="javascript:void(0)" class="btn btn-sm btn-outline-primary" @click="toPost(item.id)">查看更多</a>
							</p>
						</div>
					</div>
				</div>
<!--				<div class="col-lg-4 sidebar">-->
<!--					<div class="sidebar-box">-->
<!--						<h3 class="heading">相关类型</h3>-->
<!--						<div class="post-entry-sidebar">-->
<!--							<ul>-->
<!--								<li>-->
<!--								<a href="javascript:void(0)" v-for="item in relatedTypes" @click="toType(item.tno)"> -->
<!--								 	  <img :src="'../../' + item.pic"-->
<!--										alt="Image placeholder" class="me-4 rounded">-->
<!--										<div class="text">-->
<!--											<h4>{{item.tname}}</h4>-->
<!--											<div class="post-meta">-->
<!--											</div>-->
<!--										</div>-->
<!--								</a>-->
<!--								</li>-->
<!--							</ul>-->
<!--						</div>-->
<!--					</div>-->
<!--				</div>-->
			</div>
		</div>
	</div>
</div>
	<div id="overlayer"></div>
	<div class="loader">
		<div class="spinner-border text-primary" role="status">
			<span class="visually-hidden">Loading...</span>
		</div>
	</div>
	<script src="static/js/bootstrap.bundle.min.js"
		type="2016f221146da810e0aa877a-text/javascript"></script>
	<script src="static/js/tiny-slider.js"
		type="2016f221146da810e0aa877a-text/javascript"></script>
	<script src="static/js/flatpickr.min.js"
		type="2016f221146da810e0aa877a-text/javascript"></script>
	<script src="static/js/aos.js"
		type="2016f221146da810e0aa877a-text/javascript"></script>
	<script src="static/js/glightbox.min.js"
		type="2016f221146da810e0aa877a-text/javascript"></script>
	<script src="static/js/navbar.js"
		type="2016f221146da810e0aa877a-text/javascript"></script>
	<script src="static/js/counter.js"
		type="2016f221146da810e0aa877a-text/javascript"></script>
	<script src="static/js/custom.js"
		type="2016f221146da810e0aa877a-text/javascript"></script>
	<script async="" src="static/js/js.js"
		type="2016f221146da810e0aa877a-text/javascript"></script>
	<script type="2016f221146da810e0aa877a-text/javascript">window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag("js", new Date()); gtag("config", "UA-166033648-1");</script>
	<script src="static/js/rocket-loader.min.js" data-cf-settings="2016f221146da810e0aa877a-|49" defer=""></script>
    
    <!-- jquery vue -->
	<script src="js/jquery-3.6.0.js"></script>
	<script src="js/vue.js"></script>
	<script src="js/axios.min.js"></script>
    <script>

	     let app1 = new Vue({
	    	 el:'.cbt',
	    	 data:{
	    		title:'',
	    		relatedPosts:[],
	    		relatedTypes:[]
	    	 },
	    	 methods:{
	    		toPost(id){
	    			//sessionStorage.setItem("id",id);
	    			location.href="single.html?" + id;
	    		},
	    		toType(tno){
	    			console.log(tno)
	    			location.href="searchType.html?type=" + tno;
	    		}
	    	 },
	    	 mounted:function(){
	    		this.title = sessionStorage.getItem("searchContent");
	    		
	    		$.post("/tender/searchTender",{searchContent:this.title},rt=>{
	    			this.relatedPosts = rt.data;
	    		},"json")
	    		

	    	    
	    	 }
	     })

		let chw = new Vue({
			el:'#chw',
			data:{
				cbt:[]
			},
			methods:{
				search(){
					let title = $("#searchContent").val();
					sessionStorage.setItem("searchContent",title);
					window.open("searchPost.html");
				}
			},
			mounted:function(){

			}
		})

		 $('#phoneSearch').keydown(function(e){
			 if(e.keyCode==13){
				 let title = $("#phoneSearch").val();
				 sessionStorage.setItem("searchContent",title);
				 window.open("searchPost.html");
			 }
		 });
	</script>
</body>
</html>
